package foodmaterial.entity;

public enum ResultCode {
    /* 成功 */
    SUCCESS("成功"),

    /* 默认失败 */
    COMMON_FAIL("失败"),

    /* 参数错误 */
    PARAM_NOT_VALID( "参数无效"),
    PARAM_IS_BLANK("参数为空"),
    PARAM_TYPE_ERROR("参数类型错误"),
    PARAM_NOT_COMPLETE("参数缺失"),

    /* 用户错误 */
    USER_NOT_LOGIN( "用户未登录"),
    USER_ACCOUNT_EXPIRED( "账号已过期"),
    USER_CREDENTIALS_ERROR( "密码错误"),
    USER_CREDENTIALS_EXPIRED( "密码过期"),
    USER_ACCOUNT_DISABLE("账号不可用"),
    USER_ACCOUNT_LOCKED( "账号被锁定"),
    USER_ACCOUNT_NOT_EXIST( "账号不存在"),
    USER_ACCOUNT_ALREADY_EXIST( "账号已存在"),
    USER_ACCOUNT_USE_BY_OTHERS( "账号下线"),

    /* 业务错误 */
    NO_PERMISSION( "没有权限"),
    SERVICE_SUCCESS("处理成功") ,
    SERVICE_FAIL("处理失败") ;

    private String message;

    ResultCode(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
